﻿using ConsoleApp2._0930;
using ConsoleApp2._1014;
namespace ConsoleApp2;

    class Program
    {
        static void Main(string[] args)
        {
            
            /*
            Demo demo = new Demo();
            demo.Testprint1();
            //demo.Testprint2();
            //demo.Testprint3();
            //demo.Testprint4();
            //demo.Testprint5();
            //demo.Testprint6();
            */
            
            /*while (true)
            {
                User.ShowMenu();
                string choice = Console.ReadLine()?.Trim();
                switch (choice)
                {
                    case "1":
                        User.Login(); // 调用登录方法
                        break;
                    case "2":
                        User.Regist(); // 调用注册方法
                        break;
                    case "3":
                        Console.WriteLine("程序已退出！");
                        return; // 退出程序
                    default:
                        Console.WriteLine("请输入有效数字(1-3)！");
                        break;
                }
            }*/
            Student student1 = new Student(
                "张三",
                "20240002",
                21,
                "男",
                "17543658977",
                "深圳市保定区对抗路2号");

            Student student2 = new Student();
            student2.Name = "李四";
            student2.StudentId = "20240005";
            student2.Age = 20;
            student2.Gender = "女";
            student2.PhoneNumber = "19517849935";
            student2.HomeAddress = "上海市浦东新区张江高科园区";
            student1.DisplayInfo();
            Console.WriteLine();
            student2.DisplayInfo();
            Console.WriteLine($"\n{student1.Name}是否成年: {student1.IsAdult()}");
            Console.WriteLine($"{student2.Name}是否成年: {student2.IsAdult()}");
            Console.WriteLine($"\n学生信息: {student1}");
            Console.WriteLine($"学生信息: {student2}");
            
        }
    }


